package com.loong.system.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.loong.framework.dto.PageDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Size;
import java.math.BigDecimal;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

@EqualsAndHashCode(callSuper = true)
@Data
public class TenantInfoPageDTO extends PageDTO {
  /** 租户姓名 */
  @Size(max = 100, message = "编码长度不能超过100")
  @TableField(value = "name")
  @Schema(description = "租户姓名")
  @Length(max = 100, message = "编码长度不能超过100")
  private String name;

  /** 联系电话 */
  @Size(max = 20, message = "编码长度不能超过20")
  @TableField(value = "contact_number")
  @Schema(description = "联系电话")
  @Length(max = 20, message = "编码长度不能超过20")
  private String contactNumber;

  @Schema(description = "经度")
  private BigDecimal longitude;

  @Schema(description = "纬度")
  private BigDecimal latitude;

  @JsonIgnore private String tenantId;
}
